package com.jic.market.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.market.entity.CouponGoodsTemplate;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;

/**
 * 优惠券商品关联模版表
 * @author : seven
 * @email : 774329481@qq.com
 * @since : 2020-03-03 01:44:17
 * @version : v1.0.0
 */
@Repository
public interface  CouponGoodsTemplateMapper {

    long insert(CouponGoodsTemplate couponGoodsTemplate);

    long delete(Long id);

    long update(CouponGoodsTemplate couponGoodsTemplate);

    CouponGoodsTemplate queryByPrimaryKey(Long id);

    List<CouponGoodsTemplate> query(CouponGoodsTemplate couponGoodsTemplate);

    List<CouponGoodsTemplate> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("couponGoodsTemplate") CouponGoodsTemplate couponGoodsTemplate);

    long queryPageCount(CouponGoodsTemplate couponGoodsTemplate);
}